package org.vaadin.example;

import com.vaadin.flow.component.page.AppShellConfigurator;
import com.vaadin.flow.server.PWA;
import com.vaadin.flow.theme.Theme;
import com.vaadin.flow.theme.lumo.Lumo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * The entry point of the Spring Boot application.
 *
 * Use the @PWA annotation make the application installable on phones, tablets
 * and some desktop browsers.
 *
 */
@MapperScan("org.vaadin.example.orm.mapper")
@SpringBootApplication
//@PWA(name = "Project Base for Vaadin with Spring", shortName = "Project Base")
@PWA(
        name = "Vaadin CRM",
        shortName = "CRM",
        offlinePath="/offline.html",
        offlineResources = { "images/offline.png" }
)
//@Theme(value = "my-theme",variant= Lumo.DARK)
@Theme(value = "my-theme")
public class Application implements AppShellConfigurator {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
